<template>
	<view></view>
</template>

<script>
export default {
	name: 'qualityAcceptanceOperate',
	props: {
		value: {
			type: String,
			default: ''
		},
		oper_item: {
			type: Object,
			default: {}
		}
	},
	data() {
		return {};
	},
	watch: {
		value(val) {
			switch (val) {
				// 提交申请验收
				case 'qualityAcceptance_check':
					uni.navigateTo({
						url: '/pagesC/engineeringManagement/jdysCom/jdysCom?id=' + this.oper_item.id
					});
					this.close();
					break;
				// 审核
				case 'qualityAcceptance_examine':
					uni.navigateTo({
						url: '/pagesC/engineeringManagement/jdysshCom/jdysshCom?id=' + this.oper_item.id
					});
					this.close();
					break;
				// 复审
				case 'node_reexamine':
					uni.navigateTo({
						url: '/pagesC/engineeringManagement/jdysfsCom/jdysfsCom?id=' + this.oper_item.id
					});
					this.close();
					break;

				default:
			}
		}
	},

	methods: {
		close(type) {
			switch (type) {
				// 提交申请验收
				case 'qualityAcceptance_check':
					break;
				// 审核
				case 'qualityAcceptance_examine':
					break;
				// 复审
				case 'node_reexamine':
					break;

				default:
			}
			this.$emit('update:value', '');
		}
	}
};
</script>

<style lang="scss"></style>
